package com.ttx.springmvc.example2.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @author TimFruit
 * @date 19-7-28 下午5:51
 */
public class JsonModel {
    private String username;
    private Integer age;
    @JSONField(format="yyyy-MM-dd HH:mm")
    private Date birthday;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
